.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.toast {
  min-width: 280px;
  max-width: 400px;
  padding: 16px 20px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 
              0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
  animation: toast-slide-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-slide-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100px);
  }
}

.toast-exiting {
  animation: toast-slide-out 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-message {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

/* Success Toast */
.toast-success {
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.95) 0%, rgba(48, 176, 79, 0.95) 100%);
  color: white;
}

.toast-success .toast-icon {
  color: white;
}

/* Error Toast */
.toast-error {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.95) 0%, rgba(235, 47, 38, 0.95) 100%);
  color: white;
}

.toast-error .toast-icon {
  color: white;
}

/* Warning Toast */
.toast-warning {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.95) 0%, rgba(235, 134, 0, 0.95) 100%);
  color: white;
}

.toast-warning .toast-icon {
  color: white;
}

/* Info Toast */
.toast-info {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.95) 0%, rgba(0, 112, 243, 0.95) 100%);
  color: white;
}

.toast-info .toast-icon {
  color: white;
}

/* 响应式 */
@media (max-width: 768px) {
  .toast-container {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 400px;
  }
  
  .toast {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
}

